package com.ys.entity.amazonorder;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_report].[dbo].TCO_RankShopByAmountRmb", catalog="Id")
public class TcoRankShopByAmountRmb extends BaseEntity<TcoRankShopByAmountRmb> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="ShopId", nameJava="shopId", typeDataBase="bigint")
	private Long shopId;
	@YsField(nameDataBase="RankToday", nameJava="rankToday", typeDataBase="int")
	private Integer rankToday;
	@YsField(nameDataBase="RankYesterday", nameJava="rankYesterday", typeDataBase="int")
	private Integer rankYesterday;
	@YsField(nameDataBase="RankSevenDay", nameJava="rankSevenDay", typeDataBase="int")
	private Integer rankSevenDay;
	@YsField(nameDataBase="RankThirtyDay", nameJava="rankThirtyDay", typeDataBase="int")
	private Integer rankThirtyDay;
	@YsField(nameDataBase="RankThirtyDayAgo", nameJava="rankThirtyDayAgo", typeDataBase="int")
	private Integer rankThirtyDayAgo;
	@YsField(nameDataBase="CountDate", nameJava="countDate", typeDataBase="char")
	private String countDate;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcoRankShopByAmountRmb setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getShopId() {
		return shopId;
	}
	public TcoRankShopByAmountRmb setShopId(Long shopId) {
		this.shopId = shopId;
		return this;
	}
	public Integer getRankToday() {
		return rankToday;
	}
	public TcoRankShopByAmountRmb setRankToday(Integer rankToday) {
		this.rankToday = rankToday;
		return this;
	}
	public Integer getRankYesterday() {
		return rankYesterday;
	}
	public TcoRankShopByAmountRmb setRankYesterday(Integer rankYesterday) {
		this.rankYesterday = rankYesterday;
		return this;
	}
	public Integer getRankSevenDay() {
		return rankSevenDay;
	}
	public TcoRankShopByAmountRmb setRankSevenDay(Integer rankSevenDay) {
		this.rankSevenDay = rankSevenDay;
		return this;
	}
	public Integer getRankThirtyDay() {
		return rankThirtyDay;
	}
	public TcoRankShopByAmountRmb setRankThirtyDay(Integer rankThirtyDay) {
		this.rankThirtyDay = rankThirtyDay;
		return this;
	}
	public Integer getRankThirtyDayAgo() {
		return rankThirtyDayAgo;
	}
	public TcoRankShopByAmountRmb setRankThirtyDayAgo(Integer rankThirtyDayAgo) {
		this.rankThirtyDayAgo = rankThirtyDayAgo;
		return this;
	}
	public String getCountDate() {
		return countDate;
	}
	public TcoRankShopByAmountRmb setCountDate(String countDate) {
		this.countDate = countDate;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcoRankShopByAmountRmb setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcoRankShopByAmountRmb setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcoRankShopByAmountRmb setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcoRankShopByAmountRmb tcoRankShopByAmountRmb(
		Long shopId,
		Integer rankToday,
		Integer rankYesterday,
		Integer rankSevenDay,
		Integer rankThirtyDay,
		Integer rankThirtyDayAgo,
		String countDate,
		Integer status
			) {
		TcoRankShopByAmountRmb entity = new TcoRankShopByAmountRmb();
		entity.setShopId(shopId);
		entity.setRankToday(rankToday);
		entity.setRankYesterday(rankYesterday);
		entity.setRankSevenDay(rankSevenDay);
		entity.setRankThirtyDay(rankThirtyDay);
		entity.setRankThirtyDayAgo(rankThirtyDayAgo);
		entity.setCountDate(countDate);
		entity.setStatus(status);
		return entity;
	}
}